package com.macro.mall.demo.pattern.chain.service;

import com.macro.mall.demo.pattern.chain.AbstractBusinessChain;

import java.util.Objects;

public class FirstBusinessChain extends AbstractBusinessChain<String> {

    @Override
    public Boolean executeProcess(String param) {
        if (param.contains("zhangsan")) {
            System.out.println("参数包含张三，我不处理交给下一个处理");
            return false;
        }
        return true;
    }
}